#pragma once
#include"Common.h"

class PageCache
{
public:
	static PageCache* Instance()
	{
		return &_instance;
	}
	Span* NewSpan(size_t k);
	std::mutex _mtx;
private:
	SpanList _span_list[NPAGES];
	PageCache()
	{
	}
	PageCache(const PageCache&) = delete;
	static PageCache _instance;
};
